package com.neu.api.mapper;


import com.neu.api.pojo.Course;
import com.neu.api.query.CourseQuery;
import com.neu.api.vo.CourseVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CourseMapper {
    List<CourseVO> find(CourseQuery courseQuery);

    void add(Course course);

    void update(Course course);

    @Delete("delete from t_course where id = #{id}")
    void deleteById(int id);

    CourseVO findById(int id);

//    long findCount(CourseQuery courseQuery);
}
